home *** CD-ROM | disk | FTP | other *** search
/ Carousel Volume 2 #1 / carousel.iso / mactosh / john / hc_showd.hqx / ShowDialog XCMD 1.4 / card_5267.txt < prev    next >
Encoding:
Text File  |  1989-08-30  |  1.4 KB  |  32 lines

  1. -- card: 5267 from stack: in.4
  2. -- bmap block id: 0
  3. -- flags: 0000
  4. -- background id: 2607
  5. -- name: 
  6.  
  7.  
  8. -- part contents for background part 3
  9. ----- text -----
  10. ShowDialog XCMD Type 2 (continued...)
  11.  
  12. -- part contents for background part 2
  13. ----- text -----
  14. Using ResEdit to Make Templates
  15.  
  16. -- part contents for background part 1
  17. ----- text -----
  18.  
  19.  
  20. Creating the resources for ShowDialog XCMD Type 2:
  21.  
  22. The requirements for creating DLOG templates for Type 2 of ShowDialog XCMD with ResEdit are:
  23. The visible and goAwayFlag boxes must be unchecked, and the DLOG and associated DITL resources should be made purgeable.
  24.  
  25. You MUST have a default button and it MUST be DITL item #1.  This is because the first item in the item list is always assumed to be the default button.  The Macintosh Toolbox will interpret a press of the Return or Enter key as equivalent to a mouse click in the default button.
  26.  
  27. In your DITL template, your field (of type Static Text) that will contain the first prompt string must contain the placeholder "^0" (don't use the quotes; and that's a zero) and the field that will contain the second text string must contain the placeholder "^1".  If you only want to have one field of static text in your dialog, simply omit the second static text field in the template and pass an empty string in the <second prompt string> parameter. 
  28.  
  29.  
  30. -- part contents for background part 7
  31. ----- text -----
  32. 9